﻿// -----------------------------
// Webpage Toolbar Scripts
//------------------------------

$(document).ready(function() {
    $("#BCMS-WebpageToolbar-Button").toggle(
        function() {
            $("#BCMS-WebpageToolbar-Panel").slideToggle(250);
            $('#BCMS-WebpageToolbar-Button').attr('src', '/_System/images/webpagetoolbar-collapse.gif');
        },
        function() {
            $("#BCMS-WebpageToolbar-Panel").slideToggle(250);
            $('#BCMS-WebpageToolbar-Button').attr('src', '/_System/images/webpagetoolbar-expand.gif');
        });

    $("#BCMS-WebpageToolbar-Panel").hide();
});





/* extensions for ModalPopup */
function MPE_Show(behaviorId)
{
    $find(behaviorId).show();
}

function MPE_Hide(behaviorId)
{
    $find(behaviorId).hide();
}
